package com.wframe.project.former.enums;

public enum OrderStatusEnum {

	NoSubmit(0,"未提交"),
	NoPay(1,"待付款"),
	Confirm(2,"待订单确认"),
	NoSend(3,"待发货"),
	Sending(5,"备货中"),
	Sended(7,"已发货"),
	Receipted(9,"已收货"),
	End(11,"交易完成"),
	Cancel(13,"交易取消");
	
	private int status;
    private String name;
    
    private OrderStatusEnum(int status,String name){
        this.status=status;
        this.name=name;
    }
    
    public static OrderStatusEnum getStatus(int status){
    	for (OrderStatusEnum statusenum:values()){
    		if(statusenum.getStatus()==status)return statusenum;
    	}
    	return null;
    }

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
    
    
}
